INI to JSON Converter

Convert INI configuration files to JSON, and back. Auto-detect types (bool, int, float). Supports comments, sections, and multiple encodings.

1.0.0
Version
Auth
Batch

Upload your .ini file

.ini, .cfg, .conf, .properties • Max 10MB

Requires login • 1 credit

INI to JSON Converter Tutorial

What is an INI file?

INI (initialization) files are a classic plain-text configuration format used by Windows, Python packages, MySQL, PHP, Samba, Git, and countless other tools. They look like:

[database]
host = localhost
port = 5432
debug = true

[auth]
secret = my-key

Why Convert to JSON?

  • JSON is easier to process with jq, Python, Node, or any programming language
  • Nested structures are explicit (INI only has flat sections)
  • Types (bool, int, float) are preserved
  • Works with tools that expect JSON input (API tests, CI pipelines)

Type Detection Rules

When "auto-detect types" is on, values are converted as follows:

  • true / yes / on → JSON true
  • false / no / off → JSON false
  • null / none → JSON null
  • 42, -7, 0xff → integers
  • 3.14, 1e-5 → floats
  • Everything else → strings

Supported Formats

  • .ini — Standard INI files
  • .cfg — Alternative extension
  • .conf — Unix-style config (basic INI subset)
  • .properties — Java-style (flat key=value)

Files without section headers are auto-wrapped in a [DEFAULT] section. Comments (# or ;) are stripped on conversion.